﻿@model SIG.Data.Entity.Identity.User
@{
    ViewData["Title"] = "个人中心";
}

<div class="container page-member">
    <div class="row">
        <div class="col-sm-4 col-md-3">
          @Html.Partial("_UserNav")
        </div>
        <div class="col-sm-8 col-md-9">
            <div class="well">
                <div class="row">
                    <div class="col-sm-2">
                        <div class="avatar">
                            @if (string.IsNullOrEmpty(Model.PhotoUrl))
            {
                if (Model.Gender == SIG.Data.Enums.Gender.Female)
                {

                    <img src="~/public/img/avatar/girl.png" class="img-responsive" alt="@Model.UserName" />
}
else
{
                <img src="~/public/img/avatar/boy.png" class="img-responsive" alt="@Model.UserName" />

}

}
else
{

                <img src="@Model.PhotoUrl" class="img-responsive" alt="@Model.UserName" />
}
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <ul class="list-unstyled list-userinfo" >
                            <li>
                                <i class="iconfont icon-bussinessman"></i> @Model.UserName
                            </li>
                            <li>
                                <i class="iconfont icon-mobilephone"></i> @(string.IsNullOrEmpty(Model.Mobile)?"未绑定手机":Model.Mobile)
                            </li>
                        </ul>
                    </div>
                    <div class="col-sm-4">
                        <div class="balance">
                            <strong>@Model.Balance</strong>
                            <p>帐户余额</p>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="actions">
                            <a class="btn btn-primary" asp-controller="Account" asp-action="Recharge"><i class="iconfont icon-dollar"></i> 充值</a>
                            <a class="btn btn-info" asp-controller="Account" asp-action="Withdraw"><i class="iconfont icon-trade"></i> 提现</a>
                        </div>
                    </div>
                </div>
           
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <i class="iconfont icon-bussinesscard"></i>
                        个人资料
                    </h3>
                </div>
                <div class="panel-body">
                    <div class="list">
                        <a asp-controller="Account" asp-action="EditInfo" class="pull-right"><i class="iconfont icon-survey1"></i> 编辑资料</a>

                        <dl class="dl-horizontal">
                            <dt>用户名</dt>
                            <dd>@Model.UserName</dd>
                            <dt>手机号</dt>
                            <dd> @(string.IsNullOrEmpty(Model.Mobile) ? "未绑定手机" : Model.Mobile)</dd>
                            <dt>姓名</dt>
                            <dd>@Model.RealName</dd>
                            <dt>生日</dt>
                            <dd>@string.Format("{0:d}",Model.Birthday)</dd>
                            <dt>性别</dt>
                            <dd>@Model.GenderName</dd>
                            <dt>邮箱</dt>
                            <dd>@Model.Email</dd>

                            <dt>QQ</dt>
                            <dd>@Model.QQ</dd>
                        </dl>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

@section header{ 
    <style>
       
    </style>
}